package com.yuntu.service;

import com.yuntu.tools.PageUtil;
import com.yuntu.pojo.Peitems;

import java.util.List;

public interface PeitemsService {
    //查询全部
    List<Peitems> peitemsAll()throws Exception;
    //添加
    boolean add(Peitems peitems)throws Exception;
    //删除
    boolean del(int itemid)throws Exception;
    //根据itemid查询
    Peitems getitemid(int itemid)throws Exception;
    //修改
    boolean upd(Peitems peitems)throws Exception;
    //分页
    List<Peitems> getPageUtil(PageUtil<Peitems> pageUtil)throws Exception;
    //验证重名
    Peitems exist(String itemname)throws Exception;
    //登录
    Peitems login(String itemname,String ref)throws Exception;
}
